import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore('counter', () => {
  const adminname = ref('')
  const adminid = ref('')
  // const doubleCount = computed(() => count.value * 2)
  function addname(name: string) {
    adminname.value = name
  }
  function addid(id: string) {
    adminid.value = id
  }

  return { adminname, adminid ,addname, addid}
},
  {
    persist: true,
  })
